//
//  FourthViewController.m
//  王宇先_13_豆瓣界面
//
//  Created by wyx on 16/3/26.
//  Copyright © 2016年 Apon. All rights reserved.
//

#import "FourthViewController.h"
#import "ViewOfLogin.h"

@interface FourthViewController ()
@property (nonatomic, retain) UILabel *labelOfMyLove;
@property (nonatomic, retain) UIButton *buttonOfExit;

@end

@implementation FourthViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.navigationItem.title = @"用户";
    self.view.backgroundColor = [UIColor lightGrayColor];
    self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:@"注册" style:UIBarButtonItemStylePlain target:self action:@selector(handleOfLogin:)];
    self.labelOfMyLove = [[UILabel alloc] init];
    self.labelOfMyLove.text = @"  我的收藏";
    self.labelOfMyLove.frame = CGRectMake(0, 100, self.view.frame.size.width, 50);
    self.labelOfMyLove.backgroundColor = [UIColor whiteColor];
    [self.view addSubview:self.labelOfMyLove];
    [_labelOfMyLove release];
    
    self.buttonOfExit = [[UIButton alloc] initWithFrame:CGRectMake(100, 600, 214, 40)];
    [self.buttonOfExit setTitle:@"退出登录" forState:UIControlStateNormal];
    [self.view addSubview:self.buttonOfExit];
    self.buttonOfExit.backgroundColor = [UIColor cyanColor];
    [_buttonOfExit release];
}
-(void)handleOfLogin:(UIBarButtonItem *)login{
    ViewOfLogin *vc = [[ViewOfLogin alloc] init];
    [self.navigationController pushViewController:vc animated:NO];
    [vc release];
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


- (void)dealloc {
    [_labelOfMyLove release];
    [_buttonOfExit release];
    [super dealloc];
}
@end
